package person.twj.jwt.core.security.constant;

/**
 * Token的Key常量
 * 
 * @author ruoyi
 */
public class TokenConstants
{
    /**
     * 令牌自定义标识
     */
    public static final String AUTHENTICATION = "Authorization";

    /**
     * 令牌前缀
     */
    public static final String PREFIX = "Bearer ";

    /**
     * 令牌秘钥
     */
    public final static String SECRET = "abcdefghijklmnopqrstuvwxyz";

    /**
     * token时效：2 * 60 * 60 * 1000L =  2 小时
      */
    public static final Long EXPIRES_IN = 2 * 60 * 60 * 1000L;
    /**
     * token刷新时效： 720 分钟 = 12 小时
     */
    public static final Long REFRESH_EXPIRES_IN = 12 * 60 * 60 * 1000L;

    /**
     * 登录获取token URL
     */
    public static final String TOKEN_URL = "/token";
    /**
     * 刷新token URL
     */
    public static final String REFRESH_TOKEN_URL = "/refreshToken";
    /**
     * 登录的用户名
     */
    public static final String USERNAME = "username";
    /**
     * 登录的密码
     */
    public static final String PASSWORD = "password";

}
